import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { UsersEntity } from './entities/user.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DepartmentEntity } from '../department/entities/department.entity';
import { AccountEntity } from '../account/entities/account.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([UsersEntity, AccountEntity, DepartmentEntity]),
  ], //注入实体，可注入多个实体，是数组
  controllers: [UserController],
  providers: [UserService],
})
export class UserModule {}
